<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meat name="viewpoet" content="with=device-width, initial-scale=1.0">
        <title>Document</title>
</head>

<body>
    <div id="app">
        <!-- <img src="./img/evening.jpg" alt="傍晚"> -->
        <!-- <img src="{{imgUrl}}" alt="傍晚">    这样写是错误的，标签内部不能写插值表达式-->

        <!-- v-bind:src 可简写成 :src -->
        <img v-bind:src="imgUrl" :title="msg" alt="傍晚">
    </div>
    <!-- 引入的是开发版本包 - 包含完整的注释和警告 -->
    <script src="https://cdn.jsdelivr.net/npm/vue@2.7.16/dist/vue.js"></script>
    <script>
        const app = new Vue({
            el: '#app',
            data: {
                imgUrl: './img/evening.jpg',
                msg: 'hello evening'
            }
        })
    </script>

</body>

</html>